<?php
    echo $this->doctype('XHTML1_TRANSITIONAL');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php p($title) ?></title>
    <?php $this->printLayoutHead(); ?>
</head>
<body>
<?php echo $this->placeholder('body-start'); ?>
    
    <?php
    if (!Am_Lite::getInstance()->isLoggedIn()){
        echo "<script>
        $(document).ready(function() {
        $(\"#exit\").hide();
        $(\"#mainpage\").hide();
        $(\"#searchpage\").hide();
        $(\"#basketpage\").hide();
        $(\"#pollpage\").hide();
        $(\"#tbspage\").hide();
        $(\"#exit\").hide();
        $(\"#options\").hide();
        $(\"#niches\").hide();
        })</script>";
    }
     
    
    ?>

<!--   00000000000000000000000000000000000000000000000000000000000000000000000000  -->
<div id="d3-page-background-middle-texture">
<div id="d3-main">
    <div class="cleared reset-box"></div>
    <div class="d3-header">
        <div class="d3-header-position">
            <div class="d3-header-wrapper">
                <div class="cleared reset-box"></div>
                <div class="d3-header-inner">
				<div class="d3-headerobject"></div>
                <div class="d3-logo">                          
                </div>
                </div>
            </div>
        </div>
        
    </div>
    <div class="cleared reset-box"></div>
<div class="d3-bar d3-nav">
<div class="d3-nav-outer">
<div class="d3-nav-wrapper">
<div class="d3-nav-inner">
	<ul class="d3-hmenu">
                <li id = "mainpage">
                        <a href="/" <?php if ($_SERVER['PHP_SELF']=="/index.php") echo "class=\"active\"" ?>>Home</a>
                </li>
		<li id = "searchpage">
			<a href="/inc/search.php" <?php if ($_SERVER['PHP_SELF']=="/inc/search.php") echo "class=\"active\"" ?> >Search</a>
		</li>
                <li id = "niches">
			<a href="/inc/niche.php" <?php if ($_SERVER['PHP_SELF']=="/inc/niche.php") echo "class=\"active\"" ?> >Niches</a>
		</li>
                <li id = "basketpage">
			<a href="/inc/cart.php" <?php if ($_SERVER['PHP_SELF']=="/inc/cart.php") echo "class=\"active\"" ?> >Cart</a>
		</li>
                 <li id = "pollpage">
			<a href="/inc/poll.php" <?php if ($_SERVER['PHP_SELF']=="/inc/poll.php") echo "class=\"active\"" ?> >Poll</a>
		</li>
                <li id = "tbspage">
			<a href="/inc/spinner.php" <?php if ($_SERVER['PHP_SELF']=="/inc/spinner.php") echo "class=\"active\"" ?> >Spinner</a>
		</li>
                <li id = "profile">
			<a href="<?= $profileURL ?>" class="active">Client Area</a>
		</li>
                <li id = "options">
			<a href="/inc/settings.php" <?php if ($_SERVER['PHP_SELF']=="/inc/settings.php") echo "class=\"active\"" ?> >Settings</a>
		</li>
                <li id = "exit">
                    <a href="/amember/login/logout">Logout</a>
		</li>
	
	</ul>
</div>
</div>
</div>
</div>
<div class="cleared reset-box"></div>
<div class="d3-box d3-sheet">
				       <div class="d3-box-body d3-sheet-body">
							<div class="d3-layout-wrapper">
								<div class="d3-content-layout">
									<div class="d3-content-layout-row">
										<div class="d3-layout-cell d3-content">
											<div class="d3-box d3-post">
												<div class="d3-box-body d3-post-body">

<!-- <img src="<?php //echo $this->_scriptImg('large-alert.png'); ?>"> -->

    

<?php include $this->_script('_top.phtml'); ?>

<br /><br />


<?php if (empty($this->layoutNoTitle)): ?>
    <h1><?php echo $title ?></h1>
<?php endif; ?>
<hr />
<br />
<!-- content starts here -->
<?php echo $content ?>



<?php echo $this->render('_popup.phtml'); ?>
<?php echo $this->placeholder('body-finish'); ?>
									</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		    <div class="cleared"></div>          
    		<div class="cleared"></div>
	</div>


</div> <!-- d3-box -->
<div class="d3-footer">
        <div class="d3-footer-body">
            <div class="d3-footer-center">
                <div class="d3-footer-wrapper">
                    <div class="d3-footer-text">
                        <a href="#" class="d3-rss-tag-icon" title="RSS"></a>
                        <p>2012 PLR Monster. All Rights Reserved</p>
                        <div class="cleared"></div>
                        <p class="d3-page-footer"></p>
                    </div>
                </div>
            </div>
            <div class="cleared"></div>
        </div>
</div>
    <div class="cleared"></div>
</div> <!-- d3-main -->

</body>
</html>
